﻿using System;
using Microsoft.Xna.Framework;

namespace MaterialEditor
{
    /// <summary>
    /// Stores panning information
    /// </summary>
    public class Panning : IEffect
    {
        public Vector2 offset;

        public Vector2 Value
        {
            get { return offset; }
        }

        public Matrix Transform
        {
            get { return Matrix.CreateTranslation(new Vector3(offset, 0.0f)); }
        }

        public IEffect Clone()
        {
            Panning outval = new Panning();
            outval.offset = offset;

            return outval;
        }


        public Microsoft.Xna.Framework.Graphics.Effect effect
        {
            get { return null; }
        }


        public Microsoft.Xna.Framework.Graphics.Texture2D[] textures
        {
            get { return null; }
        }
    }
}